package com.hhf.ftp.service;

import java.io.IOException;

public interface FtpService {
    String connection(String username, String password, String ip, Integer port) throws IOException;
    void put(String uploadFile, String directory, String encode) throws IOException;
    void get(String filename, String localPath, String encode) throws IOException;
    void rm(String filePath, String encode) throws IOException;
    void cd(String directory, String encode) throws IOException;
    void cdup() throws IOException;
    void mkdir(String directory, String encode) throws IOException;
    String ls(String dir, String encode) throws IOException;
    String pwd(String encode) throws IOException;
    void mv(String from, String to, String encode)throws IOException;
    String close() throws IOException;
    String bash(String cmdLine) throws IOException;
    void scpPut(String uploadFile, String directory, String encode) throws IOException;
    void scpGet(String filename, String localPath, String encode) throws IOException;
}
